package org.sinuto.documentserver.service;

import org.sinuto.documentserver.bean.Document;
import org.sinuto.documentserver.bean.EditorConfig;
import org.sinuto.documentserver.exception.DocumentServerException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author 2023/2/27 9:06 ly
 **/
public interface DocumentServerService {

    Document buildDocument(String id) throws DocumentServerException;

    /**
     * 构建文档编辑参数 对象
     * @return
     */
    EditorConfig buildEditorConfig(String id, String user);


    void callBack(HttpServletRequest request, HttpServletResponse response) throws IOException, DocumentServerException;

    void download(String id, HttpServletResponse response) throws IOException;


}
